package com.example.springboot.SpringCloud.Test;

import com.example.springboot.SpringCloud.FeignClient.OrderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Component
@RestController
@RequestMapping("/OrderServiceTest01")
public class OrderServiceTest01 {

    @Autowired
    private OrderFeign orderFeign;

    @GetMapping("/t1")
    public String t1(){
        System.out.println(orderFeign.t1());
        return "this is 消费者调用方/OrderServiceTest01/t1 ,调用服务返回值为：[" + orderFeign.t1() + "]";
    }

}